// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-model.ts.hbs生成
import { IEditFormModel, IFormStore, IParam } from '@/core';
function getModel(): IEditFormModel {
	return {
		name: 'form',
		caption: '',
		codeName: 'Usr0301702317',
		enableAutoSave: false,
		entityCodeName: 'Sys_department',
		keyPSAppDEField: 'Id',
		majorPSAppDEField: 'Department_name',
		cssName: '',
		controlType: 'FORM',
		formStyle: '',
		valueRule: getValueRule(),
		createDefaultItems: getCreateDefaultItems(),
		updateDefaultItems: getUpdateDefaultItems(),
		detailModel: getDetailModel(),
		uiEngineModel: [
			{
				name: 'engine_form',
				triggerType: 'CTRLEVENT',
				logicType: 'APPVIEWENGINE',
				eventNames: 'LOAD;SAVE;REMOVE',
				scriptCode: ``,
				entityCodeName: '',
				logicName: ``,
			},
		],
	};
}
function getValueRule() {
	return [];
}

function getCreateDefaultItems() {
	return [];
}

function getUpdateDefaultItems() {
	return [];
}
function getDetailModel() {
	return {
		formpage1: {
			caption: '基本信息',
			captionItemName: '',
			name: 'formpage1',
			codeName: 'formpage1',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMPAGE',
			showCaption: false,
			enableAnchor: false,
			showMoreMode: 0,
		},
		group1: {
			caption: '基本信息',
			captionItemName: '',
			name: 'group1',
			codeName: 'group1',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'GROUPPANEL',
			showCaption: false,
			enableAnchor: false,
			showMoreMode: 0,
			showMoreItems: [],
		},
		department_number: {
			caption: '部门编号',
			captionItemName: '',
			name: 'department_number',
			codeName: 'department_number',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Department_number',
			dataType: '25',
			required: true,
			enableCond: 1,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colLG: 8, colMD: 8 },
		},
		id: {
			caption: '标识(不填则自动生成)',
			captionItemName: '',
			name: 'id',
			codeName: 'id',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: false,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Id',
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colLG: 8, colMD: 8 },
		},
		department_name: {
			caption: '部门名称',
			captionItemName: '',
			name: 'department_name',
			codeName: 'department_name',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Department_name',
			dataType: '25',
			required: true,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colLG: 8, colMD: 8 },
		},
		short_name: {
			caption: '简称',
			captionItemName: '',
			name: 'short_name',
			codeName: 'short_name',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Short_name',
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colLG: 8, colMD: 8 },
		},
		sort: {
			caption: '排序',
			captionItemName: '',
			name: 'sort',
			codeName: 'sort',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Sort',
			dataType: '1',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colLG: 8, colMD: 8 },
		},
		business_category: {
			caption: '业务类别',
			captionItemName: '',
			name: 'business_category',
			codeName: 'business_category',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Business_category',
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colLG: 8, colMD: 8 },
		},
		organization_id: {
			caption: '组织机构标识',
			captionItemName: '',
			name: 'organization_id',
			codeName: 'organization_id',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: false,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Organization_id',
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colLG: 8, colMD: 8 },
		},
		testnewinput: {
			caption: '新文本框',
			captionItemName: '',
			name: 'testnewinput',
			codeName: 'testnewinput',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colLG: 8, colMD: 8 },
		},
		description: {
			caption: '备注',
			captionItemName: '',
			name: 'description',
			codeName: 'description',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Description',
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			editRules: {
				editorType: 'TEXTAREA_10',
			},
			layout: { parentLayout: 'TABLE_24COL', colLG: 24, colMD: 24 },
		},
		groups: {
			caption: '用户组/岗位角色',
			captionItemName: '',
			name: 'groups',
			codeName: 'groups',
			disabled: false,
			visible: true,
			detailStyle: 'STYLE2',
			detailType: 'MDCTRL',
			createDefaultItems: [],
			updateDefaultItems: [],
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
		},
		name: {
			caption: '用户组/岗位名称',
			captionItemName: '',
			name: 'name',
			codeName: 'name',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			parentIsRepeater: true,
			parentCodeName: 'groups',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colMD: 6 },
		},
		groupdesc: {
			caption: '描述',
			captionItemName: '',
			name: 'groupdesc',
			codeName: 'groupdesc',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			parentIsRepeater: true,
			parentCodeName: 'groups',
			valueItem: 'description',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colMD: 10 },
		},
		groupsort: {
			caption: '显示顺序',
			captionItemName: '',
			name: 'groupsort',
			codeName: 'groupsort',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			parentIsRepeater: true,
			parentCodeName: 'groups',
			valueItem: 'sort',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colMD: 4 },
		},
	};
}
export const model = getModel();
